package com.github.data_manage.common

/**
 * 枚举了一些常用API操作码
 * Created by macro on 2019/4/19.
 */
enum class ResultCode(override val code: Long, override val message: String) : IErrorCode{
    SUCCESS(200, "操作成功"),
    FAILED(500, "操作失败"),
    VALIDATE_FAILED(601, "参数检验失败"),
    UNAUTHORIZED(401, "暂未登录或token已经过期"),
    FORBIDDEN(403, "没有相关权限"),
    NO_DATA(404, "未找到相关数据"),

    NOT_SUPPORT(701,"操作不支持")
}
